//
//  NSString+Unit.h
//  OnionHome
//
//  Created by fengjie on 2019/10/8.
//  Copyright © 2019 FengJie. All rights reserved.
//


#import <Foundation/Foundation.h>


// 格式化字符串
#define ComboString(string, args...)[NSString stringWithFormat:string,args]
#define AppendString(str1,str2)     [NSString stringWithFormat:@"%@%@",str1,str2]


NS_ASSUME_NONNULL_BEGIN

@interface NSString (Unit)

- (BOOL)isNotBlank;
- (BOOL)isImageType;
- (BOOL)isGif;


@end


@interface NSString (Category)
/**检查是否是合法手机号*/
-(BOOL)checkPhone;

/// 检查密码长度
-(BOOL)chekePaswd;

/// 检查验证码长度
-(BOOL)checkeVerificationCode;
@end

NS_ASSUME_NONNULL_END
